package com.yuanyefu.helloworld;

import org.springframework.beans.factory.BeanNameAware;

/**
 * Created by 339814 on 2017/9/15.
 */
public class HelloWorldImpl implements HelloWorld,BeanNameAware {
    private String name;
    private String orderId;
    public void setName(String name) {
        this.name=name;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public String say() {
        if(name!=null){
            return "Hello."+name+"!"+orderId;
        }
        return "Hello, "+name+"!" +orderId;
    }

    public void setBeanName(String s) {
        this.name=s;
    }
}
